package Y.Fruit;

public class FuritTest {
    public static void main(String[] args) {
        Apple apple = new Apple();

        Watermelon watermelon = new Watermelon();

        Cherry cherry = new Cherry();

        apple.setName("苹果");
        apple.setArea("昭通");
        apple.setPrice(2);

        watermelon.setName("黑美人西瓜");
        watermelon.setArea("东北");
        watermelon.setPrice(10);

        cherry.setName("樱桃");
        cherry.setArea("澳洲");
        cherry.setPrice(100);

        System.out.println("名字：" + apple.getName() + "产地：" + apple.getArea() + "价格：" + apple.getPrice());
        System.out.println("名字：" + watermelon.getName() + "产地：" + watermelon.getArea() + "价格：" + watermelon.getPrice());
        System.out.println("名字：" + cherry.getName() + "产地：" + cherry.getArea() + "价格：" + cherry.getPrice());

    }



}
